import 'package:flutter/material.dart';
import '../../Service/common_widget.dart';
import '../../Service/global.dart';
import '../Discover/discover_cell.dart';
import 'mine_head.dart';

class MinePage extends StatelessWidget {
  const MinePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        alignment: Alignment.center,
        color: Global.themColor,
        child: MediaQuery.removePadding(
            context: context,
            removeTop: true,
            child: Stack(
              children: [
                ListView(
                  children: const [
                    MineHead(),
                    SizedBox(
                      height: 10,
                    ),
                    DiscoverCell(
                      leftIcon: Icon(Icons.add),
                      leftTitle: "服务",
                    ),
                    SizedBox(
                      height: 10,
                    ),
                    DiscoverCell(
                      leftIcon: Icon(Icons.place),
                      leftTitle: "收藏",
                      rightTitle: "收藏子标题",
                      showRed: true,
                    ),
                    CellLine(
                      lineColor: Colors.grey,
                      leftMargin: 50,
                      leftColor: Colors.white,
                    ),
                    DiscoverCell(
                      leftIcon: Icon(Icons.book),
                      leftTitle: "朋友圈",
                    ),
                  ],
                ),
                const Positioned(
                  top: 80,
                  right: 20,
                  child: Icon(
                    Icons.camera,
                    size: 30,
                  ),
                ),
              ],
            )),
      ),
    );
  }
}
